package com.edu.service.ordertab;

import com.edu.entity.Order;

import java.math.BigInteger;
import java.sql.SQLException;
import java.util.List;

/**
 * @author ZCN
 * @version 1.0
 * @date 2021/11/24 9:26
 */
public interface OrderService {
    void insert(Order order) throws SQLException;
    BigInteger returnKeyAfterInsert(Order order) throws SQLException;
    Order selectByid(BigInteger id) throws SQLException;
    void updateAfterPay(String ordersn) throws SQLException;
    List<Order> selectAll() throws SQLException;
    void cancelOrder(Integer id) throws SQLException;
    List<Order> findnotpayByUserid(Integer userid) throws Exception;
    List<Order> findnotserveByUserid(Integer userid) throws SQLException;
    List<Order> findsuccessByUserid(Integer userid) throws SQLException;
    List<Order> findcancelByUserid(Integer userid) throws SQLException;
    void successorder(Integer id) throws SQLException;
}
